#include <iostream>
#include <sys/types.h>
#include <unistd.h>

using namespace std;

int main()
{
    pid_t id = fork();
    if(id == 0)
    {
        // child
        cout << "child id : " << getpid() << " , ppid : " << getppid() << endl;

    }

    // father
    cout << "father pid : " << getpid() << endl;
    return 0;
}